import config from "@/config"
import http from "@/utils/request"

export default {
	login: {
		url: `${config.API_URL}/admin/auth/login/index`,
		name: "登录",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	setMessage: {
		url: `${config.API_URL}/cms/message/message/read/All?`,
		name: "设置消息已读",
		post: async function(data){
			return await http.post(this.url+data);
		}
	},
	resetPwd: {
		url: `${config.API_URL}/cms/creator/pwd`,
		name: "修改creator密码",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	resetCinemaPwd: {
		url: `${config.API_URL}/cms/theatre/pwd`,
		name: "修改剧场管理密码",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}
